# 示例程序的CMakeLists.txt

# 获取父目录路径
get_filename_component(PARENT_DIR ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)

# 创建客户端示例
add_executable(client
    client.c
)

# 链接jsonrpc库
target_link_libraries(client jrpc)

# 设置包含目录
target_include_directories(client PRIVATE ${PARENT_DIR})

# 创建服务器示例
add_executable(server
    server.c
)

# 链接jsonrpc库
target_link_libraries(server jrpc)

# 设置包含目录
target_include_directories(server PRIVATE ${PARENT_DIR})